<template>
    <div class="cinemacontent">
        <div class="item" v-for="cinema in cinemas" :key="cinema.id">
            <div class="item_left">
                <p>{{ cinema.name }}</p>
                <p>{{ cinema.address }}</p>
            </div>
            <div class="item_right">
                <p>￥{{ Number(cinema.lowPrice / 100) }}起</p>
                <p>1.0km</p>
            </div>
        </div>
    </div>
</template>

<script>
export default {
    props: {
        cinemas: {
            type: Array,
            required: true
        }
    }
}
</script>

<style lang="less" scoped>
@import '@/assets/Less/common.less';

.cinemacontent {
    .item {
        height: 45.5px;
        padding: 15px;

        .item_left {
            float: left;
            width: 70vw;

            p:nth-child(1) {
                margin-top: 5px;
                font-size: 15px;
                overflow: hidden;
                -webkit-line-clamp: 1;
                display: -webkit-box;
                -webkit-box-orient: vertical;
            }

            p:nth-child(2) {
                overflow: hidden;
                -webkit-line-clamp: 1;
                display: -webkit-box;
                -webkit-box-orient: vertical;
                margin-top: 6px;
                font-size: 12px;
                color: @gray_text_color;
            }
        }
    }

    .item_right {
        float: right;

        p:nth-child(1) {
            text-align: center;
            margin-top: 5px;
            color: #ff5f16;
            font-size: 15px;
        }

        p:nth-child(2) {
            text-align: center;
            margin-left: 10px;
            margin-top: 5px;
            font-size: 12px;
            color: @gray_text_color;
        }
    }
}
</style>